/*
 * Copyright (c) 2015 DHC Corporation.
 */

package cn.com.hd.mall.web.webservices.entity.utils;

/**
 * author: MuWei(<a href="mailto:mingwei.zhang@dhc.com.cn">mingwei.zhang@dhc.com.cn</a>)<br/>
 * author: 李一方(<a href="mailto:liyifang@danlu.com">liyifang@danlu.com</a>)<br/>
 * author: 吴海洋(<a href="mailto:wuhaiyang@danlu.com">wuhaiyang@danlu.com</a>)<br/>
 * author: 刘立奇(<a href="mailto:liuliqi@danlu.com">liuliqi@danlu.com</a>)<br/>
 * version: 3.0.0<br/>
 * since: 2015-02-08 00:00<br/>
 *
 * <p>
 * 接口常量
 * </p>
 */
public class DanluConstants {

    /**
     * 接口常量
     */
    public static class Service {

        /**
         * 接口 1：登录
         */
        public static final String LOGIN_JSON = "login/login.json";

        /**
         * 忘记密码 请求获取短信验证码
         */
        public static final String GET_FORGETPWD_SMSCODE = "login/getValCodeForPsw.json";

        /**
         * 重新设置密码
         */
        public static final String RESET_PWD = "login/resetPsw.json";

        /**
         * 忘记密码校验短信验证码
         */
        public static final String FORGETPWD_VALIDATE_SMSCODE = "common/msg/validateMsgValCode2.json";

        /**
         * 接口 7：获取商品列表
         */
        public static final String GET_MERCHANDISES_NEW_LIST_JSON = "merch/getNewMerchList_V2.json";

        /**
         * 接口 10：获取品牌列表   （废弃了，代码中所用是接口42）
         */
        @Deprecated
        public static final String GET_BRAND_LIST_JSON = "merchandises/getBrandList.json";

        /**
         * 接口 12：修改密码
         */
        public static final String MODIFY_PASSWORD_JSON = "mydl/password/modifyPassword.json";

        /**
         * 接口 18：获取确认订单信息
         */
        public static final String GET_PRE_VIEW_ORDER_BY_SHOPPING_CART_JSON = "shoppingcart/getPreViewOrderByShoppingcart_V2.json";

        /**
         * 接口19：从购物车生成新订单 PS: 排查
         */
        public static final String CREATE_ORDER_BY_SHOPPING_CART_JSON = "shoppingcart/createOrderByShoppingcart_V4.json";

        /**
         * 接口 26：确认收货 PS: 排查
         */
        public static final String CONFIRM_DELIVERY_JSON = "order/confirmDeliveryFinish.json";

        /**
         * 接口 41：获取购物车中的商品信息
         */
        public static final String TO_SHOPPING_CART_JSON = "shoppingcart/toShoppingcart_V2.json";

        /**
         * app版本号
         */
        public static final String VERSION = "common/version/compareAppVersion.json";

        /**
         * 接口 42：获取品牌列表  （获取的是所有的品牌、分类、产地、国家等的列表，接口10已废弃）
         */
        public static final String GET_TEA_BRAND_LIST_JSON = "merch/getCategoryList.json";

        /**
         * 接口 43：获取商品详情
         */
        public static final String GET_MERCHANDISES_DETAIL_JSON_NEW = "merch/getNewMerchDetail_V2.json";

        /**
         * 接口 44：添加商品到购物车
         */
        public static final String ADD_SHOPPING_CART_JSON_NEW = "shoppingcart/addShoppingcart.json";

        /**
         * 接口45：获取购物车商品数量
         */
        public static final String GET_SHOPPING_CART_COUNT = "shoppingcart/getShoppingcartSize.json";

        /**
         * 接口 46：修改指定商品在购物车中的数量
         */
        public static final String MODIFY_SHOPPING_CART_COUNT_JSON = "shoppingcart/modifyShoppingcartCount.json";

        /**
         * 接口 47：删除购物车中的商品信息
         */
        public static final String DEL_SHOPPING_CART_BY_PRODUCT_ID_JSON = "shoppingcart/delShoppingcartByProductIds.json";

        /**
         * 接口 48：获取收货地址列表
         */
        public static final String GET_DELIVERY_ADDRESS_LIST = "mydl/deliverAddress/getDeliverAddressList.json";

        /**
         * 接口 49：获取发票列表
         */
        public static final String GET_INVOICE_LIST = "mydl/invoice/getInvoiceList.json";

        /**
         * 接口 ：添加收货地址
         */
        public static final String ADD_DELIVERY_ADDRESS = "mydl/deliverAddress/addDeliverAddress.json";

        /**
         * 接口 ：设置默认收货地址
         */
        public static final String SET_DEFAULT_DELIVERY_ADDRESS = "mydl/deliverAddress/setDefaultDeliverAddress.json";

        /**
         * 接口 ：删除收货地址
         */
        public static final String DELETE_DELIVERY_ADDRESS = "mydl/deliverAddress/delDeliverAddress.json";

        /**
         * 接口：修改收货地址
         */
        public static final String MODIFY_DELIVERY_ADDRESS = "mydl/deliverAddress/modifyDeliverAddress.json";

        /**
         * 接口：获取所有区域列表
         */
        public static final String GET_AREA_LIST = "regist/getArea.json";

        /**
         * 接口：添加发票
         */
        public static final String ADD_INVOICE = "mydl/invoice/addInvoice.json";

        /**
         * 接口：设为默认普通发票
         */
        public static final String SET_DEFAU_NORAML_INVOICE = "mydl/invoice/setDefaultInvoice.json";

        /**
         * 接口：修改发票
         */
        public static final String MODIFY_INVOICE = "mydl/invoice/modifyInvoice.json";

        /**
         * 接口：删除发票
         */
        public static final String DEL_INVOICE = "mydl/invoice/delInvoice.json";

        /**
         * 接口：获取收藏
         */
        public static final String GET_FAVOURITE_LIST =
                "mydl/favorites/getFavoriteListWithoutPromotionFlg.json";

        /**
         * 接口：获取店铺类型
         */
        public static final String GET_STORE_TYPE = "regist/getTerminalShopTypeList.json";

        /**
         * 接口：提交注册
         */
        public static final String GET_REGISTER_SUBMIT = "regist/terminalRegistApprove_V2.json";

        /**
         * 接口：获取终端店所在区域
         */
        public static final String GET_STORE_ADD = "mydl/deliverAddress/getTerminalAddress.json";

        /**
         * 接口：终端店注册查看审批进度
         */
        public static final String GET_TERMINAL_PROGESS = "regist/terminalRegistProgress.json";

        /**
         * 接口：终端店注册资料修改再注册
         */
        public static final String MODIFY_TERMINAL_INFO = "regist/terminalInformationModify.json";

        /**
         * 接口：发送验证码
         */
        public static final String SEND_VERIFY_CODE = "regist/getValidateCode.json";

        /**
         * 接口 50：添加收藏
         */
        public static final String ADD_FAVOURITE = "mydl/favorites/addFavorite.json";

        /**
         * 接口 51：删除收藏
         */
        public static final String DEL_FAVOURITE = "mydl/favorites/delFavorite.json";

        /**
         * 接口 54：获取买家订单数量
         */
        public static final String GET_BUYER_ORDER_COUNT = "orders/getBuyerOrderCount.json";

        /**
         * 接口 55：获取订单列表
         */
        public static final String GET_ORDER_LIST = "orders/getBuyerOrderList_V2.json";

        /**
         * 接口 56：获取订单详情
         */
        public static final String GET_ORDER_DETAIL = "orders/getBuyerOrderDetail.json";

        /**
         * 接口 57：更新选择促销的新信息
         */
        public static final String GET_CHANGED_PROMOTION = "shoppingcart/getOnChangedPromotionInfo.json";

        /**
         * 接口 58：取消订单
         */
        public static final String ORDER_DEAL_CANCLE = "orders/oper/cancel.json";

        /**
         * 接口 59：确认收货
         */
        public static final String ORDER_RECEIVE = "orders/oper/receive.json";


        /**
         * 接口  商品快照
         */
        public static final String ORDER_SNAP_SHOT = "orders/getOrderMerchSnapshot.json";

        /**
         * 接口 60：获取支付号
         */
        public static final String GET_PEYMENT_NO = "orders/oper/createQftSDKPaymentOrder.json";

        /**
         * 接口 61：通知服务器支付状态
         */
        public static final String NOTIFY_PEYMENT_STATUS = "orders/oper/paymentQftPayResNotfily.json";

        /**
         * 接口 62：获取支付端常量
         */
        public static final String GET_YJF_CONFIG = "orders/oper/getYijipayConfig.json";

        /**
         * 接口 62：获取获取买家易极付账户信息
         */
        public static final String GET_YJF_USER_INFO = "orders/oper/getQftUserInfo.json";

        //=====================================以下为消息相关接口 =====================================

        /**
         * 未读消息数目
         */
        public static final String GET_UNREAD_COUNT = "message/count";

        /**
         * 获取指定消息类型的最新一条消息
         */
        public static final String GET_NEWEST_MSG = "message/retrieveNewestOneMessage";

        /**
         * 将消息状态置为已读
         */
        public static final String SET_MSG_STATUS = "message/markAsReadByType";

        /**
         * 获取消息（订单消息、其他消息）列表
         */
        public static final String GET_MSG_LIST = "message/list";

        /**
         * 获取订单跟踪状态消息
         */
        public static final String GET_ORDER_TRACK = "orders/getOrderLog.json";

        /**
         * 获取用户协议地址
         */
        public static final String GET_PROTOCAL = "common/url/userAgreementUrl.json";

        //=======================================红包相关接口=======================================

        /**
         * 获取可用和不可用优惠券列表
         */
        public static final String GET_ENVELOPLIST = "coupon/getCouponList.json";

        /**
         * 获取平台参数
         */
        public static final String GET_COUPONPARAM = "common/param/getCouponParam.json";

        /**
         * 获取优惠券列表(未使用，已过期，已使用)
         */
        public static final String GET_MYCOUPONLIST = "coupon/getMyCouponList.json";

        /**
         * 获取 优惠券数目（未使用，已过期，已使用）
         */
        public static final String GET_MYCOUPONCOUNT = "coupon/getMyCouponCnt.json";

        /**
         * 激活手机号相关
         */
        public static final String GET_SMSCODE_ACTIVEPHONE = "mydl/account/getValCodeForActivate.json";
        public static final String GET_ACCOUNT_INFO = "mydl/account/getAcctInfo.json";
        public static final String ACTIVE_PHONE = "mydl/account/activatePhone.json";
        public static final String GET_COMPANY_INFO = "mydl/account/getCompanyInfo.json";

        /**
         * 排查
         */
        public static final String GET_TOPIC_LIST = "common/pic/getNewTopicList.json";
        public static final String GET_BANNER_LIST = "common/pic/getBannerList.json";

        /**
         * 获取图形验证码接口
         */
        public static final String GET_PIC_VALCODE = "common/pic/getPicValCode.json";

        /**
         * 校验图形验证码接口
         */
        public static final String VALIDATE_PIC_CODE = "common/pic/validatePicValCode.json";

        /**
         * 获取原手机号解绑短信验证码(4位验证码)
         */
        public static final String GET_SMSCODE_FOR_UNBINDPHONE = "mydl/account/getValCodeForUnbindPhone.json";

        /**
         * 获取新手机号激活验证码(4位验证码) PS: 排查
         */
        public static final String GET_SMSCODE_FOR_BINDPHONE = "mydl/account/getValCodeForBindPhone.json";

        /**
         * 获取红包支付短信验证码(add by llq,需检验)
         */
        public static final String GET_SMSCODE_FOR_ENVELOP = "shoppingcart/sendMessage.json";

        /**
         * 校验短信验证码
         */
        public static final String VALIDATE_SMS_CODE = "common/msg/validateMsgValCode.json";

        /**
         * 激活新的手机号码
         */
        public static final String ACTIVE_NEW_PHONE = "mydl/account/activateNewPhone.json";

        /**
         * 大额红包支付 检查是否需要弹出后续的验证信息
         */
        public static final String CHECK_SWITCH = "shoppingcart/checkSwitch.json";

        /**
         * 首页促销推荐
         */
        public static final String PROMOTION_LIST = "merch/getPromotionList_V2.json";

        /**
         * 推荐商品列表
         */
        public static final String RECOMMEND_LIST = "merch/getRecommendList.json";

        /**
         * 常购列表
         */
        public static final String OFTENBUY_LIST = "merch/getOftenBuyList_V2.json";

        /**
         * 获取所有品类
         */
        public static final String GET_ALL_CATEGORY = "merch/getAllCategory.json";

        /**
         * 获取经销商最小配送金额
         */
        public static final String DEALER_MIN_DELIVERY_AMT = "common/param/getDealerMinDeliveryAmt.json";
    }

    public static class Constants {
        /**
         * 操作系统类型 0 安卓 1 苹果
         */
        public static final String OS_CODE = "0";

        /**
         * 设备类型 0 Phone 1 Pad
         */
        public static final String EQUIPMENT_CODE = "0";

        /**
         * 应用类型 0 终端店 1 经销商 2 配送员
         */
        public static final String APP_TYPE_0 = "0";
        public static final String APP_TYPE_1 = "1";
        public static final String APP_TYPE_2 = "2";

        /**
         * 返回销售用户角色
         */
        public static final String LOGIN_CUSTOMER_ROLE = "B_R_SALE";
    }
}
